﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Configuration;

namespace Arbalest.Web.Helpers
{
    public sealed class ConfigurationHelper : BaseHelper
    {
        public sealed class SystemWeb : BaseHelper
        {
            public sealed class Authentication : BaseHelper
            {
                private static AuthenticationSection authenticationSection;

                static Authentication()
                {
                    authenticationSection = (AuthenticationSection)
                        WebConfigurationManager.GetWebApplicationSection("system.web/authentication");

                }

                public static AuthenticationMode GetMode()
                {
                    return authenticationSection.Mode;
                }
            }

            
        }

        public sealed class ConnectionStrings
        {
            public static string ArbalestEntities 
            {
                get
                {
                    return ConfigurationManager.ConnectionStrings["ArbalestEntities"].ConnectionString;
                }
            }
            
        }
    }
}